package com.tsfot.spider.analyze;

import com.tsfot.spider.adapter.URLAdapter;
import com.tsfot.spider.bean.SpiderConfig;
import com.tsfot.spider.service.RollingFileService;

public abstract class AbstractAnalyzeService implements AnalyzeService,Runnable{
	
	protected SpiderConfig config;
	
	protected URLAdapter adapter;
	
	protected RollingFileService fileService;
	
	/**
	 * 初始化可以用来读取配置
	 */
	public void init(){
		
	}
	
	public void run() {
		start();
	}
	
	public void setConfig(SpiderConfig config) {
		this.config = config;
	}

	public void setFileService(RollingFileService fileService) {
		this.fileService = fileService;
	}

	public void setAdapter(URLAdapter adapter) {
		this.adapter = adapter;
	}
	
	
	
}
